package com.niiwoo.civet.trade.dao.mapper;


import com.niiwoo.civet.trade.dao.entity.CreditorSelling;
import com.niiwoo.civet.trade.dto.request.creditor.CreditorSalePageRequestDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CreditorSellingMapperExt extends CreditorSellingMapper{
    List<CreditorSelling> selectPageByParams(@Param("params") CreditorSalePageRequestDTO requestDTO);
    
    /**
     * 查询已售罄的债权出让订单
     * 
     * @param offset
     * @param limit
     * @return
     */
	List<CreditorSelling> selectSelloutCreditorOrder(@Param("offset") Integer offset, @Param("rows") Integer rows);

    /**
     * 查询可投资的订单
     * @return
     */
    Integer selectCountByStatus();

    /*HashMap<String,BigDecimal> selectCreditorListByRate();

    CreditorSelling selectCreditorListByDeadLineMax();
    CreditorSelling selectCreditorListByDeadLineMin();*/
}